<template>
	<view class="content">
		<view class="info-box">
			<view class="head">基本信息</view>
			<view class="item column">
				<text class="label">回款编号</text>
				<text class="text">{{item.code}}</text>
			</view>
			<view class="item column">
				<text class="label">回款日期</text>
				<text class="text">{{item.returnTime}}</text>
			</view>
			<view class="item column">
				<text class="label">回款金额</text>
				<text class="text">{{item.code}}</text>
			</view>
			<view class="item column">
				<text class="label">回款方式</text>
				<text class="text">{{utils.getDictLabelName("receivablesType",item.returnType)}}</text>
			</view>
		<view class="item column">
			<text class="label">合同编号</text>
			<text class="text">{{contract.code}}</text>
		</view>
		<view class="item column">
			<text class="label">审核状态</text>
			<text class="text">
				{{utils.getDictLabelName("contractStatus",item.checkStatus)}}
			</text>
		</view>
		<view class="item column">
			<text class="label">审核意见</text>
			<text class="text">{{item.auditNote}}</text>
		</view>
			<view class="item column" @click="showContract()">
				<text class="label">合同名称</text>
				<text class="text">{{contract.name}}</text>
			</view>
		</view>
		 
	</view>
</template>

<script>
	export default {
		data() {
			return {
				item:{},
				contract:{},
			}
		},
		onLoad() {
			// 修改顶部导航背景色
			uni.setNavigationBarColor({
				frontColor: '#ffffff',
				backgroundColor: '#39b54a',
				animation: {
					duration: 400,
					timingFunc: 'easeIn'
				}
			})
		},
		methods: {
			getDetails(item,contract){
				this.item=item;
				this.contract=contract;
			},
			showContract(){
				uni.navigateTo({
					url: '../contract/detail?contractId='+this.contract.contractId
				})
			},
			 
		}
	}
</script>

<style scoped lang="scss">
	.content{
		background: #fff;
		padding-bottom: 20upx;
		.info-box{
			.head{
				height: 60upx;
				line-height: 60upx;
				font-size: 32upx;
				color: #000;
				font-weight: bold;
				position: relative;
				padding: 10upx 50upx;
				// &::after{
				// 	content: "";
				// 	width: 10upx;
				// 	height: 10upx;
				// 	border-radius: 5upx;
				// 	background: #333;
				// 	position: absolute;
				// 	top: 50%;
				// 	transform: translateY(-50%);
				// 	left: 20upx;
				// }
			}
			.item{
				height: 90upx;
				line-height: 90upx;
				padding: 0 50upx;
				border-bottom: 1px solid #f7f7f7;
				&:last-child{
					border-bottom: none;
				}
				&.column{
					height: auto;
					display: flex;
					flex-direction: column;
					.text{
						margin-bottom: 20upx;
						line-height: 1.5;
					}
				}
				.label{
					font-size: 30upx;
					color: #999;
					margin-right: 30upx;
				}
				.text{
					font-size: 32upx;
					color: #000;
					&.blue{
						color: #2172FF;
					}
				}
			}
		}
	}
</style>
